
<%@page import="com.dts.project.dao.CountryMasterDao"%>
<%@page import="com.dts.core.util.CoreList"%>
<%@page import="java.util.Enumeration"%>
<%@page import="com.yourcompany.struts.form.CountryMasterForm"%>
<%@page import="com.dts.project.dao.ProductMasterDao"%>
<%@page import="com.yourcompany.struts.form.ProductMasterForm"%>
<%@page import="com.dts.project.dao.ProductDetailsDao"%>
<%@page import="com.yourcompany.struts.form.ProductDetailsForm"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/transitional.dtd">
<html>
<head>
<style>
body,td,th {
	color: #B00606;
	font-family: Verdana, Arial, Helvetica, sans-serif;
}
.style9 {color: #FFFFFF}
body {
	background-color: #003333;
}
</style>
<title>EPost- Office</title>
<script type="text/javascript" src="scripts/moveclock.js"></script>



<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /></head>
<body>
<table width="750" align="center" bgcolor="#B00606">
<tr><td>
<img src="images/epostoffice.gif" width="780"></td>
</tr>
<tr>
   <td bgcolor="#E16A00"><jsp:include page="UserOptions.jsp"/>
   </td></tr>
<tr><td>
<%--<div align="center">--%>
<%--<table bgcolor="#B00606" width="750" align="center">--%>
<%--<tr>--%>
<%--   <td><jsp:include page="Template.html"/></td></tr></table></div>--%>
<div align="center">
<table bgcolor="#B00606" width="770" align="center" height="70">
<tr>
   <td>
   
   <marquee><font color="#ECEDF3"><h1>WELCOME TO THE USER</h1></marquee>
<marquee> <img src="images/IndianStamps.gif" height="100"><img src="images/ist2_1276217-vintage-indian-stamps-ephemera.jpg" height="100"><img src="images/images.jpeg" height="100"><img src="images/images1.jpeg" height="100"><img src="images/stamp price.jpg" height="100"><img src="images/2007-03-28-sw-stamps.jpg" height="100"><img src="images/6a00d83452795369e200e5506182958834-500wi.jpg" height="100"><img src="images/stamp-avocet.JPG" height="100"></marquee>
     <p align="center">
   <center>
    <form action="UserSerch.jsp">
   <table>
   <tr><td><font color="white"><strong>Country Name</strong></font></td>
   <td><select name="countryid">
   <option value="--Select Any One---">--Select Any One---</option>
   <%CountryMasterDao aMasterDao=new CountryMasterDao();
   CoreList acorelist=aMasterDao.ViewCountryIDs();
   Enumeration aEnumeration=acorelist.elements();
   while(aEnumeration.hasMoreElements())
   {
   CountryMasterForm aform=(CountryMasterForm)aEnumeration.nextElement();
    
    %>
    <option value="<%=aform.getCountryId() %>"><%=aform.getCountryName() %> </option>
  <%} %>
  </select>
   </td>   
   <td><font color="white"><strong>Product Name</strong></font></td>
   <td><select name="productid">
   <option value="--Select Any One---">--Select Any One---</option>
   <%ProductMasterDao aproductDao=new ProductMasterDao();
   CoreList acorelist1=aproductDao.ViewProductMaster();
   Enumeration aEnumeration1=acorelist1.elements();
   while(aEnumeration1.hasMoreElements())
   {
   ProductMasterForm aform=( ProductMasterForm)aEnumeration1.nextElement();
    
    %>
    <option value="<%=aform.getProductId() %>"><%=aform.getProductName() %> </option>
  <%} %>
  </select>
   </td>   
   </tr>
    
   <tr><td></td><td></td><td><input type="submit" name="submit" value="search"/></td></tr>
    <tr><td></td><td></td></tr>
    <tr><td></td><td></td></tr>
    <tr><td></td><td></td></tr>
    <tr><td></td><td></td></tr>
    <tr><td></td><td></td></tr>
    <tr><td></td><td></td></tr>
    <tr><td></td><td></td></tr>
    <tr><td></td><td></td></tr>
    <tr><td></td><td></td></tr>
    <tr><td></td><td></td></tr>
    <tr><td></td><td></td></tr>
    <tr><td></td><td></td></tr>
      
    
    </table>
     </form>
     <%if(request.getParameter("status")!=null){ %>
     <%=request.getParameter("status") %>
     <%} %>
     <form action="deleteProductDetailsAction.do">
 <%
 
 try
 {
 int productid=Integer.parseInt(request.getParameter("productid"));
 int countryid=Integer.parseInt(request.getParameter("countryid"));
 String storepath=request.getRealPath("/images");
 ProductDetailsDao dao=new ProductDetailsDao();
 CoreList cl=dao.ViewProductDetails(storepath,productid,countryid);
 Enumeration en=cl.elements();
 %><%
					  int count = 0;
					  if(session.getAttribute("nci")!=null)
					  {
					      count = ((Integer)session.getAttribute("nci")).intValue();
					  }
					  %>
                     <font color="white"><b> <%=count%>Item(s) are in Cart </b></font> 
                      
 <table align="center" border=1>
 <tr bgcolor="#FFFFFF">
<td><div align="center"><strong>Country Name</strong></div></td>      
<td><div align="center"><strong>Product Name</strong></div></td>      

 <td><div align="center"><strong>Item Name</strong></div></td>   
    
<td><div align="center"><strong>Item Img</strong></div></td>      
<td><div align="center"><strong>Item Desc</strong></div></td>       
<td><div align="center"><strong>Price</strong></div></td>
 </tr>          
 <%while(en.hasMoreElements())
 {
 ProductDetailsForm form=(ProductDetailsForm)en.nextElement();
  %>
  <tr bgcolor="#666666">
  <td><span class="style3"><font color="White"><strong><%=form.getCountryname() %></strong></font></span></td>
  <td><span class="style3"><strong><font color="White"><%=form.getProductname() %></font></strong></span></td>
  <td><strong><font color="White"><%=form.getItemName() %></font></strong></td>
   <td><img src="images/<%=form.getItemImage() %>" width=50 height=50></td>
  <td><span class="style3"><strong><font color="White"><%=form.getItemDesc() %></font></strong></span></td>
  <td><span class="style3"><strong><font color="White"><%=form.getPrice() %></font></strong></span></td>
 <td><span class="style3"><strong><font color="White"><a href="AddtoCart.jsp?countryid=<%=form.getCountryId() %>&productid=<%=form.getProductId() %>&itemid=<%=form.getItemId() %>">Add To Cart</a></font></strong></span></td></tr>
 
  <%}}catch(Exception e)
  {
  e.printStackTrace();
  }
   %>
   </table>
   <center>
    </form>
     </center>
    
     
     
     </td></tr></table>
          <p>&nbsp;</p>
               <p>&nbsp;</p>
                    <p>&nbsp;</p>
                         
           <p>&nbsp;</p>
               <p>&nbsp;</p>
                    <p>&nbsp;</p>
                         
           <p>&nbsp;</p>
             
                         
                              
     <p>&nbsp;</p>
      <p>&nbsp;</p>
               <p>&nbsp;</p>
                    <p>&nbsp;</p>
                         
           <p>&nbsp;</p>
               <p>&nbsp;</p>
                    <p>&nbsp;</p>
                         
           <p>&nbsp;</p>
             
                         
                              
     <p>&nbsp;</p>
     </div>


</body></html>